Versions:

  • 0.42.0
  • 0.41.1
  • 0.41.0
  • 0.40.5
  • 0.40.4
  • 0.40.3
  • 0.40.2
  • 0.40.1
  • 0.40.0
  • 0.39.9
  • 0.39.7
  • 0.39.6
  • 0.39.5
  • 0.39.4
  • 0.39.3
  • 0.39.2
  • 0.39.1
  • 0.38.7
  • 0.38.6
  • 0.38.5
  • 0.38.4
  • 0.38.3
  • 0.38.2
  • 0.38.1
  • 0.38.0
  • 0.37.0
  • 0.36.3
  • 0.36.2
  • 0.36.1
  • 0.35.0
  • 0.24.1
  • 0.24.0
  • 0.23.1
  • 0.23.0
  • 0.17.1
  • 0.6.2

ast-grep is a command-line utility positioned in the Developer-Tools/Code-Search category that delivers high-speed, language-agnostic analysis of large codebases. Engineered for performance, the program treats source files as Abstract Syntax Trees, enabling it to locate patterns, apply linting rules, and perform automated rewrites with semantic precision rather than relying on error-prone regular expressions. Typical use cases include enforcing corporate style guides across multi-language repositories, modernizing legacy APIs by systematically updating call sites, detecting security anti-patterns before they reach production, and executing large-scale refactorings such as package renames or dependency upgrades. Because the engine supports more than thirty programming languages out of the box, a single invocation can scan mixed projects containing JavaScript, Python, Rust, Go, Java, C++, and others without additional configuration. Users write queries in a concise YAML-based syntax that mirrors the structure of the target language, then chain together search, rewrite, and test steps in portable configuration files that live alongside the code. CI pipelines benefit from built-in GitHub Actions integration, while local workflows gain speed through incremental caching and parallel execution across CPU cores. The project has iterated rapidly, publishing thirty-six numbered releases since its debut; the current general-availability build is 0.42.0, and all preceding versions remain tagged for reproducibility. ast-grep is available for free on get.nero.com, with downloads provided via trusted Windows package sources such as winget, always delivering the latest version and supporting batch installation of multiple applications.

Tags: